class ItemAddType < ActiveRecord::Migration
  def self.up
    add_column :items, :type_id, :integer, :default => 0
    rename_column :items, :genreid, :genre_id
  end

  def self.down
    rename_column :items, :genre_id, :genreid
    remove_column :items, :type_id
  end
end
